package org.example.util5;

public class Manager extends Employee {
    private double bonus;
    public Manager(String name, Double salary, int year, int month, int day) {
        super(name, salary, year, month, day);
        bonus=2;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public Double getSalary() {
        double baseSalary=super.getSalary();
        return baseSalary+bonus;
    }
}
